import Vue from 'vue'
import Vuex from 'vuex'
import router from './router';
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: '',
    access_token:''
  },
  mutations: {
    saveUserInfo(state,payload) {
      state.user = payload.user;
      state.access_token=payload.access_token;
    }
  },
  actions: {

  }
})